package com.wispx.shortlink.project.common.constant;

/**
 * Redis缓存key
 */
public class RedisKeyConstant {

    /**
     * 短链接跳转key前缀
     */
    public static final String GOTO_SHORT_LINK_KEY = "short-link:goto:";

    /**
     * 查询数据库短链接 锁前缀
     */
    public static final String LOCK_GOTO_SHORT_LINK = "lock:short-link:goto:";

    /**
     * 空值前缀
     */
    public static final String IS_NULL_GOTO_SHORT_LINK = "short-link:is-null:goto:";

    /**
     * UV 统计key前缀
     */
    public static final String SHORT_LINK_UV_STATS_KEY = "short-link:stats:uv:";

    /**
     * UIP 统计key前缀
     */
    public static final String SHORT_LINK_UIP_STATS_KEY = "short-link:stats:uip:";

    /**
     * 短链接修改分组 ID 锁前缀 Key
     */
    public static final String LOCK_GID_UPDATE_KEY = "short-link:lock:update-gid:";

    /**
     * 短链接延迟队列消费统计 Key
     */
    public static final String DELAY_QUEUE_STATS_KEY = "short-link:delay-queue:stats";
}
